home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / AdvancedPane$PasteAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  2.1 KB  |  44 lines

  1. package com.extensibility.xa;
  2.  
  3. import com.extensibility.app.BaseAction;
  4. import java.awt.event.ActionEvent;
  5. import java.beans.PropertyChangeEvent;
  6. import java.beans.PropertyChangeListener;
  7. import java.util.EventObject;
  8. import javax.swing.AbstractAction;
  9.  
  10. public class AdvancedPane$PasteAction extends BaseAction implements PropertyChangeListener {
  11.    // $FF: synthetic field
  12.    final AdvancedPane this$0;
  13.  
  14.    public AdvancedPane$PasteAction(AdvancedPane var1) {
  15.       super("edit.item.paste", 86);
  16.       this.this$0 = var1;
  17.       var1.ipeTable.pasteAction.addPropertyChangeListener(this);
  18.       var1.xpeTable.pasteAction.addPropertyChangeListener(this);
  19.       var1.igeTable.pasteAction.addPropertyChangeListener(this);
  20.       var1.xgeTable.pasteAction.addPropertyChangeListener(this);
  21.       var1.notTable.pasteAction.addPropertyChangeListener(this);
  22.       var1.piTable.pasteAction.addPropertyChangeListener(this);
  23.       var1.nsTable.pasteAction.addPropertyChangeListener(this);
  24.       var1.dtTable.pasteAction.addPropertyChangeListener(this);
  25.       ((AbstractAction)this).setEnabled(false);
  26.    }
  27.  
  28.    public void updateEnabled() {
  29.       ((AbstractAction)this).setEnabled(this.this$0.getCurrentTable().cutAction.isEnabled());
  30.    }
  31.  
  32.    public void actionOccurred(ActionEvent var1) {
  33.       this.this$0.getCurrentTable().pasteAction.actionOccurred(var1);
  34.    }
  35.  
  36.    public void propertyChange(PropertyChangeEvent var1) {
  37.       if (var1.getPropertyName().equals("enabled") && ((EventObject)var1).getSource() == this.this$0.getCurrentTable().pasteAction) {
  38.          Boolean var2 = (Boolean)var1.getNewValue();
  39.          ((AbstractAction)this).setEnabled(var2);
  40.       }
  41.  
  42.    }
  43. }
  44.